$(".goBuy").click(function(){
		var type=$(this).attr("type");
		$.ajax({
		  type: "post",
		  url: apicom + "mobile/view/clubcard/getclubcardmsg",
		  data: {
		    cardtype: type
		  },
		  success: function(res) {
		    if (typeof res == "string") {
		      var data = JSON.parse(res);
		    } else {
		      var data = res;
		    }
		    if (data.code == 1) {
				location.href="../shopDetail/klm_shopDetail.html?id="+type;	
		    }
		    if (data.code == 2) {
		      tips(data.msg);
		    }
		    if (data.code == 0) {
		      tips(data.msg);
		    }
		  },
		  error: function(err) {
		    tips("服务器错误!");
		  }
		});
});
